$(function(){
	ownerSelector("beanownerid");
	$("#saveBtn").bind("click",function(){
		var data = $("form#beanform").serialize();
		doSubmit("sparepart/spare-part!create",data,function(){
			$("form#beanform").get(0).reset();
			alert("备件添加成功!");
		});
	});
});